import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../route/app_pages.dart';
import 'profile_controller.dart';

class ProfileView extends StatelessWidget {
  const ProfileView({super.key});

  @override
  Widget build(BuildContext context) {
    return GetBuilder<ProfileController>(
      init: ProfileController(),
      tag: 'ProfileView',
      builder: (ctrl) {
        return CupertinoPageScaffold(
          navigationBar: CupertinoNavigationBar(
            backgroundColor: Colors.transparent,
            trailing: InkWell(
              onTap: () => Get.toNamed(AppRoutes.settings),
              child: const Text('Settings'),
            ),
          ),
          child: Container(),
        );
      },
    );
  }
}
